<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib prefix="fm" uri="http://www.springframework.org/tags/form" %>
<!DOCTYPE html>
<html>
<head>
<script type="text/javascript" src="${pageContext.request.contextPath }/statics/calendar/WdatePicker.js"></script>
<meta charset="UTF-8">
<title>添加</title>
</head>
<body>
	<fm:form method="post" modelAttribute="user">
				<fm:errors path="userCode" cssStyle="color:red" /><br/>
		用户编码：<fm:input path="userCode"/><br/>
				<fm:errors path="userName" cssStyle="color:red"/><br/>
		用户名称：<fm:input path="userName"/><br/>
				<fm:errors path="userPassword" cssStyle="color:red"/><br/>
		用户密码：<fm:input path="userPassword"/><br/>
		用户性别：
				<fm:radiobutton path="gender" value="1" checked="checked"/>男
				<fm:radiobutton path="gender" value="2"/>女<br/>
				<fm:errors path="birthday" cssStyle="color:red"/><br/>
		出生日期：<fm:input path="birthday" id="birthday" Class="Wdate" readonly="readonly" onclick="WdatePicker();"/><br/>
				<fm:errors path="phone" cssStyle="color:red"/><br/>
		用户电话：<fm:input path="phone"/><br/>
				<fm:errors path="address" cssStyle="color:red"/><br/>
		用户地址：<fm:input path="address"/><br/>
		用户角色：
				<fm:radiobutton path="userRole" value="1"/>系统管理员
				<fm:radiobutton path="userRole" value="2"/>经理
				<fm:radiobutton path="userRole" value="3" checked="checked"/>普通用户<br/>
				<input type="submit" value="保存">
	</fm:form>
</body>
</html>